package in

import (
	"strings"

	"github.com/gogf/gf/net/ghttp"
)

//所有参数
func QueryMap(r *ghttp.Request) map[string][]string {
	m := make(map[string][]string)
	for i, v := range r.URL.Query() {
		list := []string{}
		for _, s := range v {
			list = append(list, strings.Split(s, ",")...)
		}
		if len(list) > 0 {
			m[i] = list
		}
	}
	return m
}
